package com.jinly.ryder.common.web.mapping;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.mapstruct.MapperConfig;

import java.util.List;

@MapperConfig
public interface BaseVOMapping<V, M> {

    V toVo(M model);

    List<V> toVoList(List<M> model);

    M toModel(V vo);

    List<M> toModelList(List<V> voList);

    Page<V> toVOPage(Page<M> entity);

}
